package com.yw.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created By 张永伟 on 2018/5/31.
 */
@Controller
public class IndexController {

    @RequestMapping
    public String index(Model model){
        model.addAttribute("a","aaaaaaaaaaaaa");
        model.addAttribute("b","bbbbbbbbbbbbb");
        model.addAttribute("c","ccccccccccccc");
        model.addAttribute("d","ddddddddddddd");
        return "index";
    }
    @RequestMapping("list")
    public String list(Model model){
        model.addAttribute("a","aaaaaaaaaaaaa");
        model.addAttribute("b","bbbbbbbbbbbbb");
        model.addAttribute("c","ccccccccccccc");
        model.addAttribute("d","ddddddddddddd");
        return "index";
    }
}
